package com.xxjqr.rbac.entity.dto;

import com.xxjqr.rbac.enums.SexEnum;
import com.xxjqr.rbac.enums.StatusEnum;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class UserDto {
    @NotEmpty(message = "用户名能为空")
    private String name;
    private String nickname;
    @NotEmpty(message = "用户密码不能为空")
    private String password;
    @NotNull(message = "用户状态不能为空")
    private StatusEnum status;
    private String mobile;
    @NotNull(message = "所属部门不能为空")
    private Long deptId;
    @NotNull(message = "用户岗位不能为空")
    private Long jobId;
    @NotNull(message = "绑定角色不能为空")
    private List<Long> roleIds;
    @NotNull(message = "性别不能为空")
    private SexEnum sex;
    private String remarks;
}
